package com.lqian.inner_class.anoymous;

public class TestMain {

    public static void main(String[] args) {
        MyInterface myInterface = new MyInterfaceImpl();
        myInterface.show1();
        myInterface.show2();
        System.out.println("--------------");
        int COUNT = 100;
        MyInterface myInterface1 = new MyInterface() {
            @Override
            public void show1() {
                System.out.println("111"+"-"+COUNT);

            }

            @Override
            public void show2() {
                System.out.println("222");
            }
        };

        myInterface1.show1();
        myInterface1.show2();

        System.out.println("-------");
        String s1 = "Aa";
        String s2 = "BB";
        System.out.println(s1.hashCode());
        System.out.println(s2.hashCode());
    }
}
